/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.br.imovel.model;

import java.util.List;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

/**
 *
 * @author diego
 */
@Entity

public class Professor extends Usuario {
  
    @OneToMany
    private List<Modulo> modulos;

    public Professor() {
    }

    public List<Modulo> getModulos() {
        return modulos;
    }

    public void setModulos(List<Modulo> modulos) {
        this.modulos = modulos;
    }
    
    @Override
    public String toString() {
        return ""+super.getId()+"$"+super.getNome()+"";
    }
}
